import React from 'react'

export default class Location extends React.Component {
  render() {
    return (
      <a href={ this.props.location.url } className="media-box-card">
        <div className="media-box-card__img">
          <img src={ this.props.location.mapUrl } />
          <p className="media-box-card__img-caption">{ this.props.location.name }</p>
        </div>
      </a>
    )
  }
}